package pe.edu.upc.dsd.agencianavieraweb.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.apache.log4j.Logger;

@Controller
@SessionAttributes
public class AgenciaNavieraController {

	private Logger logger = Logger.getLogger(AgenciaNavieraController.class);

	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String index(Model model) {
		logger.debug("Ingresando al index...");
		return "index";
	}

	@RequestMapping(value = "/home", method = RequestMethod.GET)
	public String home(Model model) {
		logger.debug("Ingresando al index mediante menu...");
		return "index";
	}

}
